<% def config = org.codehaus.groovy.grails.commons.ConfigurationHolder.getConfig() %>
<html>
  <head>
    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
    <title>${config.simple.contents.title} Wiki ログイン</title>
    <link rel="stylesheet" href="${createLinkTo(dir:'css',file:'main.css')}" />
<style type='text/css' media='screen'>
#login {
  margin:15px 0px; padding:0px;
  text-align:center;
}
#login .inner {
  width:260px;
  margin:0px auto;
  text-align:left;
  padding:10px;
  border-top:1px solid #499ede;
  border-bottom:1px solid #499ede;
  background-color:#EEF;
}
#login .inner .fheader {
  padding:4px;margin:3px 0px 3px 0;color:#2e3741;font-size:14px;font-weight:bold;
}
#login .inner .cssform p{
  clear: left;
  margin: 0;
  padding: 5px 0 8px 0;
  padding-left: 105px;
  border-top: 0px dashed gray;
  margin-bottom: 10px;
  height: 1%;
}
#login .inner .cssform input[type='text']{ 
  width: 120px;
}
#login .inner .cssform label{
  font-weight: bold;
  float: left;
  margin-left: -105px; 
  width: 100px;
}
#login .inner .login_message {color:red;}
#login .inner .text_ {width:120px;}
#login .inner .chk {height:12px;}
#login .logo {
  margin: 20px 0px 40px 0px;
}
.newEntry{
  font-size:12px;
}
</style>
<g:javascript library="application" />
  </head>
  <body>
    <div id='login'>
      <div class="logo">
        <img src="${config.simple.contents.logoimg}" border="0" align="middle"/>
      </div>
      <div class='inner'>
      <g:if test='${flash.message}'>
        <div class='login_message'>${flash.message}</div>
      </g:if>
      <div class='fheader'>ログインしてください</div>
      <form action='${request.contextPath}/j_spring_security_check' method='POST' id='loginForm' class='cssform'>
        <p>
          <label for='j_username'>ログインID</label>
          <input type='text' class='text_' name='j_username' id='j_username'  />
        </p>
        <p>
          <label for='j_password'>パスワード</label>
          <input type='password' class='text_' name='j_password' id='j_password' />
        </p>
        <p>
          <label for='remember_me'>記憶する</label>
          <input type='checkbox' class='chk' id='remember_me' name='_spring_security_remember_me'>
        </p>
        <p>
          <input type='submit' value='Login' />
        </p>
        <p class="newEntry">
          新規登録は<g:link controller="register">こちら</g:link>
        </p>
      </form>
      </div>
      <span class="foot">${config.simple.contents.footer.copy}</span>
    </div>
<script type='text/javascript'>
<!--
(function(){
  document.forms['loginForm'].elements['j_username'].focus();
})();
// -->
</script>
  </body>
</html>
